//
//  SZLPaySuccessViewController.m
//  Shengzhuli
//
//  Created by 卡忙科技 on 16/8/16.
//  Copyright © 2016年 kamangkeji. All rights reserved.
//

#import "SZLPaySuccessViewController.h"
#import "SZLSingleListViewController.h"
#import "SZLNavigationController.h"

@interface SZLPaySuccessViewController ()<SZLNavigationControllerDelegate>
@property (weak, nonatomic) IBOutlet UILabel *successLab;
@property (weak, nonatomic) IBOutlet UIButton *backBtn;
@property (weak, nonatomic) IBOutlet UIButton *lookBtn;

@end

@implementation SZLPaySuccessViewController

- (void)viewDidLoad
{
    [super viewDidLoad];
    self.navigationItem.title = @"订单状态";
    if (self.isNeedHide) {
        self.backBtn.hidden = YES;
        self.lookBtn.hidden = YES;
        self.successLab.text = @"充值成功";
    }
}
- (BOOL)szlNavigationControllershouldPopItem:(SZLNavigationController *)navi
{
    [self.navigationController popToRootViewControllerAnimated:YES];
    return NO;
}

- (IBAction)actionClick:(UIButton *)btn
{
    if (btn.tag == 0) {
        [self.navigationController popToRootViewControllerAnimated:YES];
    }else{
        SZLSingleListViewController *listVc = [[SZLSingleListViewController alloc]init];
        listVc.type = SingleTypeReadyDeliver;
        listVc.isFromPay = YES;
        listVc.model = self.model;
        [self.navigationController pushViewController:listVc animated:YES];
    }
}


@end
